home *** CD-ROM | disk | FTP | other *** search
/ Gekkan Dennou Club 145 / Gekkan Dennou Club - 2000.6 Vol. 145 (Japan).7z / Gekkan Dennou Club - 2000.6 Vol. 145 (Japan) (Track 1).bin / tools / sharp / xc2102i.lzh / XC2102.XDF / INCLUDE / STAT.H < prev    next >
Text File  |  1992-03-03  |  1KB  |  54 lines

  1. /*
  2.  * stat.h X68k XC Compiler v2.10 Copyright 1990,91,92 SHARP/Hudson
  3.  */
  4. #ifndef    __STAT_H
  5. #define    __STAT_H
  6.  
  7. #include    <stddef.h>
  8.  
  9. #ifdef    FORWORD
  10. #define    __PROTO_TYPE
  11. #endif
  12. #ifdef    __STDC__
  13. #define    __PROTO_TYPE
  14. #endif
  15.  
  16. typedef    short        dev_t;
  17. typedef    int        ino_t;
  18. typedef    unsigned    off_t;
  19. struct    stat    {
  20.     dev_t    st_dev;            /*デバイス番号(ディスク・ドライブ番号)*/
  21.     ino_t    st_ino;            /*inode番号            */
  22.     short    st_mode;        /*ファイルタイプとファイル属性        */
  23.     short    st_nlink;        /*(1)リンクカウント            */
  24.     short    st_uid;            /*(0)ユーザID                */
  25.     short    st_gid;            /*(0)グループID            */
  26.     dev_t    st_rdev;        /*rawデバイス番号            */
  27.     off_t    st_size;        /*ファイル・サイズ            */
  28.     time_t    st_atime;        /*アクセス時刻                */
  29.     time_t    st_mtime;        /*モディファィ時刻            */
  30.     time_t    st_ctime;        /*クリエイト時刻            */
  31. };
  32.  
  33. #define    S_IREAD        0        /*読み込み専用                */
  34. #define    S_IWRITE    1        /*書き込み可能                */
  35. #define    S_IFDIR        16        /*ディレクトリー            */
  36. #define    S_IFREG        32        /*通常                    */
  37. #define    S_IEXEC        64        /*実行                    */
  38. #define    S_IFCHR        128        /*デバイス                */
  39.  
  40. #ifdef    __PROTO_TYPE
  41.  
  42. int    fstat(int, struct stat *);
  43. int    stat(const char *, struct stat *);
  44.  
  45. #undef    __PROTO_TYPE
  46. #else
  47.  
  48. int    fstat();
  49. int    stat();
  50.  
  51. #endif
  52.  
  53. #endif
  54.